package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

/**
 * @author Fz
 * @since 1.0.0 2024-07-31
 */

@Data
@TableName("FMC_beacon")
public class FmcBeacon {

    @Column(name = "ID")
    private Integer id;

    @Column(name = "pid", comment = "项目编码")
    private String pid;

    @Column(name = "did", comment = "设备编码")
    private String did;

    /**
     * 本条记录入库的时间
     */
    @Column(name = "ctime", comment = "本条记录入库的时间",type = MySqlTypeConstant.DATETIME)
    private Date ctime;


    @Column(name = "batt", comment = "电池电压",type = MySqlTypeConstant.FLOAT)
    private Float batt;

    @Column(name = "period", comment = "周期",type = MySqlTypeConstant.FLOAT)
    private Float period;

    @TableField("`signal`")
    @Column(name = "signal", comment = "信号强度",type = MySqlTypeConstant.FLOAT)
    private Float signal;

}